Meaning of the word "all is not lost that is in peril" in English

What does "all is not lost that is in peril" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

all is not lost that is in peril

US /ɔːl ɪz nɑːt lɔːst ðæt ɪz ɪn ˈperəl/
UK /ɔːl ɪz nɒt lɒst ðæt ɪz ɪn ˈperɪl/
"all is not lost that is in peril" picture

Idiom

even if a situation is dangerous or difficult, there is still a chance of success or recovery

Example:
The company is facing bankruptcy, but all is not lost that is in peril; we might still find an investor.
Though we are behind in the polls, all is not lost that is in peril.